Skip to content

Verify llama upgrades replay without cached patch objects - #271

Merged
i386 merged 1 commit into
mainfrom
fix/upgrade-candidate-recovery
Nov 29, 2026
Merged

i386 merged 1 commit into
mainfrom
fix/upgrade-candidate-recovery

Conversation

@i386

@i386 i386 commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Original problem

Llama upgrade preparation could succeed using private cached Git patch-result objects, export a queue that failed on fresh CI, and then refuse to repair that source failure. This change makes exported queues portable before full CI and routes patch replay failures back to bounded repair.

Related recovery: #270. Failure: run 46227295288, Quality canary.

Diagnostics

The b12843 candidate prepared native commit b26f24ec1adbe926e0b3243440f1afe1a4fc542b successfully, but a clean runner failed at core patch 0038 with sha1 information is lacking or useless (tests/CMakeLists.txt) and could not build fake ancestor. Its patch still referenced an old intermediate blob available in the preparation runner, rather than being re-exported from the applied commit on the new upstream.

The subsequent repair job reported repairable=false, failure_class=infrastructure, solely because Run just llama-prepare was absent from candidate source steps. It stopped without invoking repair or publishing a PR.

Fix

  • After applying/building the core/model queue, re-export its actual linear commits against the selected pin, preserving queue order and commit metadata. Compiler-generated shards remain owned by the existing generator.
  • Before returning a regenerated candidate, independently replay the complete queue using just llama-prepare in a new repository fetched from upstream's reachable history only. Do not clone private objects or use alternates. Require the exact same native commit SHA; record the tree and pin in cold-replay.json.
  • Save cold replay status and failed mail patches for the existing bounded repair session, and retain a successful replay receipt with preparation recovery diagnostics. A failed replay cannot freeze a candidate.
  • Classify Run just llama-prepare failures as candidate failures. Recognized network, disk, runner/image and missing-dependency failures still stop source repair.

Compatibility

No runtime, ABI, wire, full-CI selection, qualification policy or publication-gate changes. Candidate bundles retain their existing direct-child and digest-bound schema. Re-exporting patch bytes changes the recipe digest, which the existing controller recomputes from the final queue. Complete native identity must agree across prepared and fresh replays. No publisher credentials are added to builds, and no environment filtering is introduced.

No Actions YAML or shared composite-action execution flow changes are included.

Validation

  • SKIPPY_PYTHON=/Users/jdumay/.paseo/worktrees/2f4aprt2/gorgeous-stingray/target/upgrade-repro/automation-venv/bin/python just ci-automation — passed, including all Python automation contracts and 113 Node workflow/controller tests.
  • The real-Git preimage regression now proves an old queue succeeds warm but fails in an upstream-only repository; re-export then passes and produces the identical native commit/content. It also rejects unexpected native history and removes a stale success receipt after failure.
  • Classification regressions cover the actual patch-0038 failure as repairable and DNS/connectivity/disk failures as infrastructure. Existing NVML/container failures remain covered.
  • Rehearsed this helper on the actual recovered b12843 candidate: the original queue reproduced patch 0038's failure in a new repository; re-exporting 87 core/model commits passed independent just llama-prepare with exact native commit b26f24ec1adbe926e0b3243440f1afe1a4fc542b and tree 5cf8c1702e0b8dd719d2b7c83dd6a012bff11e00, matching its saved preparation checkpoint. Generated shards were unchanged.
  • git diff --check — passed.

No fresh native compilation, model inference or hardware/package qualification was run for this orchestration change. The manual production-candidate rehearsal verifies source replay and identity, not successful full CI. Recovery PR #270 remains a draft pending fresh qualification. Local automation log: /tmp/skippy-upgrade-recovery-automation.log; actual-candidate replay logs: /tmp/skippy-recovered-llama-upgrade/target/recovery/.

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@i386 i386 mentioned this pull request Nov 29, 2026
2 tasks done
@i386
i386 merged commit 7e25261 into main Nov 29, 2026
44 of 46 checks passed
@i386
i386 deleted the fix/upgrade-candidate-recovery branch November 29, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant